﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BT_DoHoa_Nhom13.ShapeLib.FCShapes
{
    public class FCStartShape : MyDiagramShape
    {
        public FCStartShape()
        {
            // TODO: Complete member initialization
            lstShapes = new List<MyShape>();
            lstShapes.Add(new MyEllipse());
            lstShapes.Add(new MyString("Start"));   
        }

        public override MyShape Clone()
        {
            return new FCStartShape();
        }

        public override MyShape CloneByDiagramFactory(DiagramFactorys.MyDiagramFactory factory)
        {
            MyShape newShape = factory.GetStartShape();
            newShape.Copy(this);
            return newShape;
        }

        public override void ResetChildPoint()
        {
            foreach (MyShape shape in lstShapes)
            {
                shape.SetStartPoint(startX, startY);
                shape.SetEndPoint(endX, endY);
            }
        }

    }
}
